﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HDSmartCommunity.Models
{
    public class MqttInfo
    {
        public int ID { get; set; }
        public string version { get; set; }//版本
        public string line { get; set; }//路线
        public string station { get; set; }//车站
        public string message_type { get; set; }//会话类型
        public string iot_node_id { get; set; }//网关设备编码
        public string device_id { get; set; }//车站设备编码
        public string mqtt_server { get; set; }//MQTT Broker IP
        public int mqtt_port { get; set; }//MQTT Broker 端口
        public string mqtt_uname { get; set; }//MQTT Broker的用户名
        public string mqtt_pwd { get; set; }// MQTT Broker 密码
        public int ele_type { get; set; }// 电梯类型 1=电梯，2=扶梯
        public string number { get; set; }//出厂编号
        public string topic { get; set; }//topic
        public string SerialNumber { get; set; }//设备识别码
        public string DeviceCode { get; set; }//设备代码
    }

    public class MqttDeviceInfo
    {
        public string msgid { get; set; }
        public string ts { get; set; }
        public List<MqttDeviceInfoData> data { get; set; }
    }
    public class MqttDeviceInfoData
    {
        public string deviceID { get; set; }
        public List<MqttDeviceInfoDataPoint> devicePoints { get; set; }
    }

    public class MqttDeviceInfoDataPoint
    {
        public string point { get; set; }
        public int value { get; set; }
    }

    public class UploadFileEntity
    {
        public string FileName { get; set; }
        public string FilePath { get; set; }
    }

    public class PZData
    {
        public string SerialNumber { get; set; }
        public string SerialData { get; set; }
        public string Remark { get; set; }
    }

    public class PZMqttInfo
    {
        public int ID { get; set; }
        public string mqtt_server { get; set; }//MQTT Broker IP
        public int mqtt_port { get; set; }//MQTT Broker 端口
        public string mqtt_uname { get; set; }//MQTT Broker的用户名
        public string mqtt_pwd { get; set; }// MQTT Broker 密码
    }

    public class PZBasicInfo
    {
        public int StorageStart { get; set; }//寄存器开始地址
        public int StorageCount { get; set; }//寄存器数量
        public int Liftid { get; set; }//梯号
        public int PZInterval { get; set; }//查询间隔时间
        public string SerialNumber { get; set; }//序列号
        public string Remark { get; set; }//备注
    }

    public class SerialInfo
    {
        public string BaudRate { get; set; }//COM1波特率
        public int Parity { get; set; }//COM1校验 0=无，1=奇校验，2=偶校验
        public int DataBits { get; set; }//COM1数据位
        public int StopBits { get; set; }//COM1停止位
        public int BaudRate_2 { get; set; }//COM2波特率
        public int Parity_2 { get; set; }//COM2校验 0=无，1=奇校验，2=偶校验
        public int DataBits_2 { get; set; }//COM2数据位
        public int StopBits_2 { get; set; }//COM2停止位
    }

    public class DataSimulationInfo
    {
        public int DataSimulation { get; set; }//0=正常,1=模拟，2=严御路站模拟
        public int VirtualInterval { get; set; }
    }

    public class YYLMqttDeviceInfo
    {
        public string msgid { get; set; }
        public string ts { get; set; }
        public List<YYLMqttDeviceInfoData> data { get; set; }
    }

    public class YYLMqttDeviceInfoData
    {
        public string deviceID { get; set; }
        public List<YYLMqttDeviceInfoDataPoint> devicePoints { get; set; }
    }

    public class YYLMqttDeviceInfoDataPoint
    {
        public string point { get; set; }
        public bool value { get; set; }
    }

    public class YYLDataPoint
    {
        public string msgid { get; set; }
        public Object ParamsInfo { get; set; }
    }

    public class DTParamInfo
    {
        public CZDT_YX_ZT CZDT_YX_ZT { get; set; }
        public CZDT_ST_ZT CZDT_ST_ZT { get; set; }
        public CZDT_JX_ZT CZDT_JX_ZT { get; set; }
        public CZDT_GZ_BJ CZDT_GZ_BJ { get; set; }
        public CZDT_TX_BJ CZDT_TX_BJ { get; set; }

    }

    public class FTParamInfo
    {
        public ZDFT_SX_ZT ZDFT_SX_ZT { get; set; }
        public ZDFT_XX_ZT ZDFT_XX_ZT { get; set; }
        public ZDFT_TZ_ZT ZDFT_TZ_ZT { get; set; }
        public ZDFT_GZ_BJ ZDFT_GZ_BJ { get; set; }
        public ZDFT_JT_BJ ZDFT_JT_BJ { get; set; }
        public ZDFT_GB_BJ ZDFT_GB_BJ { get; set; }
        public ZDFT_TX_BJ ZDFT_TX_BJ { get; set; }
    }

    public class CZDT_YX_ZT
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class CZDT_ST_ZT
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class CZDT_JX_ZT
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class CZDT_GZ_BJ
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class CZDT_TX_BJ
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class ZDFT_SX_ZT
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class ZDFT_XX_ZT
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class ZDFT_TZ_ZT
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class ZDFT_GZ_BJ
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class ZDFT_JT_BJ
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class ZDFT_GB_BJ
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class ZDFT_TX_BJ
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }

    public class CemsSerialInfo
    {
        public int SerialId { get; set; }//串口id
        public string PortName { get; set; }//串口名称
        public int BaudRate { get; set; }//串口波特率
        public int Parity { get; set; }//串口校验 0=无，1=奇校验，2=偶校验
        public int DataBits { get; set; }//串口数据位
        public int StopBits { get; set; }//串口停止位
    }

    public class CemsConfig
    {
        public int Interval { get; set; }//延时时间，单位秒
        public int HeartCheck { get; set; }//是否启用0=否1=是
    }

    public class PlatformConfig
    {
        public int FacePort { get; set; }//人脸识别面板端口号
        public string CemsPlatformIp { get; set; }//cems平台地址
    }

    //public class Line18DTDataPoint
    //{
    //    public string REG_COD { get; set; }//设备代码
    //    public string identificationNumber { get; set; }//设备识别码
    //    public string timeStamps { get; set; }//数据生成时间
    //    public int serviceMode { get; set; }//当前服务模式0=停止服务、1=正常运行、2=检修模式、3=其他
    //    public int operationStatus { get; set; }//运行状态0=停止,1=运行,2=急停
    //    public int operationDirection { get; set; }//运行方向0=停止,1=上行,2=下行
    //    public bool faultState { get; set; }//故障信号
    //    public int faultCode { get; set; }//故障代码
    //    public bool alarmState { get; set; }//预警信号
    //    public int alarmCode { get; set; }//预警代码
    //    public float totalRunningTime { get; set; }//累计运行时间
    //    public int totalRunningCounts { get; set; }//累计运行次数
    //    public float motorVibrationSpeed { get; set; }//电机振动速度
    //    public float gearboxVibrationSpeed { get; set; }//减速机震动速度
    //    public float baseVibrationSpeed { get; set; }//底座震动速度
    //    public float mainVibrationSpeed { get; set; }//主驱动轮震动速度
    //    public float stepVibrationSpeed { get; set; }//梯级链涨紧轮震动速度
    //}

    public class Line18DTDataPoint
    {
        public string msgid { get; set; }//消息id
        public Line18DataPointParamInfo ParamsInfo { get; set; }
    }

    public class Line18DataPoint
    {
        public string msgid { get; set; }
        public string SerialNumber { get; set; }
        public string DeviceCode { get; set; }
        public object ParamsInfo { get; set; }
    }

    public class Line18DataPointParamInfo
    {
        public Line18ZDFT_REG_CODE REG_COD { get; set; }//设备代码
        public Line18ZDFT_identificationNumber identificationNumber { get; set; }//设备识别码
        public Line18ZDFT_timeStamps timeStamps { get; set; }//数据生成时间
        public Line18ZDFT_serviceMode serviceMode { get; set; }//当前服务模式
        public Line18ZDFT_operationStatus operationStatus { get; set; }//运行状态
        public Line18ZDFT_operationDirection operationDirection { get; set; }//运行方向
        public Line18ZDFT_GZ_BJ faultState { get; set; }//故障信号
        public Line18ZDFT_FaultCode faultCode { get; set; }//故障代码
        public Line18ZDFT_AlarmState alarmState { get; set; }//预警信号
        public Line18ZDFT_AlarmCode alarmCode { get; set; }//预警代码
        public Line18ZDFT_TotalRunningTime totalRunningTime { get; set; }//累计运行时间
        public Line18ZDFT_TotalRunningCounts totalRunningCounts { get; set; }//累计运行次数
        public Line18ZDFT_MotorVibrationSpeed motorVibrationSpeed { get; set; }//电机振动速度
        public Line18ZDFT_GearboxVibrationSpeed gearboxVibrationSpeed { get; set; }//减速机震动速度
        public Line18ZDFT_BaseVibrationSpeed baseVibrationSpeed { get; set; }//底座震动速度
        public Line18ZDFT_MainVibrationSpeed mainVibrationSpeed { get; set; }//主驱动轮震动速度
        public Line18ZDFT_StepVibrationSpeed stepVibrationSpeed { get; set; }//梯级链涨紧轮震动速度
    }

    public class FTLine18ParamInfo
    {
        public Line18ZDFT_SX_ZT ZDFT_SX_ZT { get; set; }
        public Line18ZDFT_XX_ZT ZDFT_XX_ZT { get; set; }
        public Line18ZDFT_TZ_ZT ZDFT_TZ_ZT { get; set; }
        public Line18ZDFT_YX_ZT ZDFT_YX_ZT { get; set; }
        public Line18ZDFT_GZ_BJ ZDFT_GZ_BJ { get; set; }
        public Line18ZDFT_JT_BJ ZDFT_JT_BJ { get; set; }
        public Line18ZDFT_TX_BJ ZDFT_TX_BJ { get; set; }
        public Line18ZDFT_JX_BJ ZDFT_JX_BJ { get; set; }
        public Line18ZDFT_GZ_DM ZDFT_GZ_DM { get; set; }
        public Line18ZDFT_Y_MS ZDFT_Y_MS { get; set; }
        public Line18ZDFT_JNYX_MS ZDFT_JNYX_MS { get; set; }
        public Line18ZDFT_DSYX_MS ZDFT_DSYX_MS { get; set; }
        public Line18ZDFT_GSYX_MS ZDFT_GSYX_MS { get; set; }
        public Line18ZDFT_QSYX_MS ZDFT_QSYX_MS { get; set; }
        public Line18ZDFT_BP_MS ZDFT_BP_MS { get; set; }
        public Line18ZDFT_ZDYX_MS ZDFT_ZDYX_MS { get; set; }
        public Line18ZDFT_SXYX_MS ZDFT_SXYX_MS { get; set; }
        public Line18ZDFT_LXYX_MS ZDFT_LXYX_MS { get; set; }
        public Line18ZDFT_BZBZDQ_WD_LEFT_1 BZBZDQ_WD_LEFT_1 { get; set; }
        public Line18ZDFT_BZBZDQ_WD_LEFT_2 BZBZDQ_WD_LEFT_2 { get; set; }
        public Line18ZDFT_BZBZDQ_WD_RIGHT_1 BZBZDQ_WD_RIGHT_1 { get; set; }
        public Line18ZDFT_BZBZDQ_WD_RIGHT_2 BZBZDQ_WD_RIGHT_2 { get; set; }
        public Line18ZDFT_HJ_WD HJ_WD { get; set; }
        public Line18ZDFT_KZG_WD KZG_WD { get; set; }
        public Line18ZDFT_BPQ_WD BPQ_WD { get; set; }
        public Line18ZDFT_SBFZL SBFZL { get; set; }
        public Line18ZDFT_ZTJL ZTJL { get; set; }
        public Line18ZDFT_FSDSDPCL FSDSDPCL { get; set; }
        public Line18ZDFT_JSDCGQ1_QX_RMS JSDCGQ1_QX_RMS { get; set; }
        public Line18ZDFT_JSDCGQ1_HX_RMS JSDCGQ1_HX_RMS { get; set; }
        public Line18ZDFT_JSDCGQ1_CZ_RMS JSDCGQ1_CZ_RMS { get; set; }
        public Line18ZDFT_JSDCGQ1_QX_PEAK JSDCGQ1_QX_PEAK { get; set; }
        public Line18ZDFT_JSDCGQ1_HX_PEAK JSDCGQ1_HX_PEAK { get; set; }
        public Line18ZDFT_JSDCGQ1_CZ_PEAK JSDCGQ1_CZ_PEAK { get; set; }
        public Line18ZDFT_JSDCGQ2_QX_RMS JSDCGQ2_QX_RMS { get; set; }
        public Line18ZDFT_JSDCGQ2_HX_RMS JSDCGQ2_HX_RMS { get; set; }
        public Line18ZDFT_JSDCGQ2_CZ_RMS JSDCGQ2_CZ_RMS { get; set; }
        public Line18ZDFT_JSDCGQ2_QX_PEAK JSDCGQ2_QX_PEAK { get; set; }
        public Line18ZDFT_JSDCGQ2_HX_PEAK JSDCGQ2_HX_PEAK { get; set; }
        public Line18ZDFT_JSDCGQ2_CZ_PEAK JSDCGQ2_CZ_PEAK { get; set; }
        public Line18ZDFT_JSDCGQ3_QX_RMS JSDCGQ3_QX_RMS { get; set; }
        public Line18ZDFT_JSDCGQ3_HX_RMS JSDCGQ3_HX_RMS { get; set; }
        public Line18ZDFT_JSDCGQ3_CZ_RMS JSDCGQ3_CZ_RMS { get; set; }
        public Line18ZDFT_JSDCGQ3_QX_PEAK JSDCGQ3_QX_PEAK { get; set; }
        public Line18ZDFT_JSDCGQ3_HX_PEAK JSDCGQ3_HX_PEAK { get; set; }
        public Line18ZDFT_JSDCGQ3_CZ_PEAK JSDCGQ3_CZ_PEAK { get; set; }
        public Line18ZDFT_JSDCGQ4_QX_RMS JSDCGQ4_QX_RMS { get; set; }
        public Line18ZDFT_JSDCGQ4_HX_RMS JSDCGQ4_HX_RMS { get; set; }
        public Line18ZDFT_JSDCGQ4_CZ_RMS JSDCGQ4_CZ_RMS { get; set; }
        public Line18ZDFT_JSDCGQ4_QX_PEAK JSDCGQ4_QX_PEAK { get; set; }
        public Line18ZDFT_JSDCGQ4_HX_PEAK JSDCGQ4_HX_PEAK { get; set; }
        public Line18ZDFT_JSDCGQ4_CZ_PEAK JSDCGQ4_CZ_PEAK { get; set; }
        public Line18ZDFT_AlarmState AlarmState { get; set; }//预警信号
        public Line18ZDFT_AlarmCode AlarmCode { get; set; }//预警代码
        public Line18ZDFT_TotalRunningTime TotalRunningTime { get; set; }//累计运行时间
        public Line18ZDFT_TotalRunningCounts TotalRunningCounts { get; set; }//累计运行次数
        public Line18ZDFT_MotorVibrationSpeed motorVibrationSpeed { get; set; }//电机振动速度
        public Line18ZDFT_GearboxVibrationSpeed gearboxVibrationSpeed { get; set; }//减速机震动速度
        public Line18ZDFT_BaseVibrationSpeed baseVibrationSpeed { get; set; }//底座震动速度
        public Line18ZDFT_MainVibrationSpeed mainVibrationSpeed { get; set; }//主驱动轮震动速度
        public Line18ZDFT_StepVibrationSpeed stepVibrationSpeed { get; set; }//梯级链涨紧轮震动速度

    }

    public class Line18ZDFT_LXYX_MS
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_SXYX_MS
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_ZDYX_MS
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_BP_MS
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_QSYX_MS
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_GSYX_MS
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_Y_MS
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_DSYX_MS
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JNYX_MS
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }

    public class Line18ZDFT_YX_ZT
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }

    public class Line18ZDFT_GZ_DM
    {
        public string value { get; set; }
        public long ts { get; set; }
    }

    public class Line18ZDFT_SX_ZT
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_XX_ZT
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_TZ_ZT
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
  
    public class Line18ZDFT_JT_BJ
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JX_BJ
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_TX_BJ
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_BZBZDQ_WD_LEFT_1
    {
        public double value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_BZBZDQ_WD_LEFT_2
    {
        public double value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_BZBZDQ_WD_RIGHT_1
    {
        public double value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_BZBZDQ_WD_RIGHT_2
    {
        public double value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_HJ_WD
    {
        public double value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_KZG_WD
    {
        public double value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_BPQ_WD
    {
        public double value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_SBFZL
    {
        public double value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_ZTJL
    {
        public double value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_FSDSDPCL
    {
        public double value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ1_QX_RMS
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ1_HX_RMS
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ1_CZ_RMS
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ1_QX_PEAK
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ1_HX_PEAK
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ1_CZ_PEAK
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ2_QX_RMS
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ2_HX_RMS
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ2_CZ_RMS
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ2_QX_PEAK
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ2_HX_PEAK
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ2_CZ_PEAK
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ3_QX_RMS
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ3_HX_RMS
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ3_CZ_RMS
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ3_QX_PEAK
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ3_HX_PEAK
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ3_CZ_PEAK
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ4_QX_RMS
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ4_HX_RMS
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ4_CZ_RMS
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ4_QX_PEAK
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ4_HX_PEAK
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_JSDCGQ4_CZ_PEAK
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    
    public class Line18ZDFT_REG_CODE
    {
        public string value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_identificationNumber
    {
        public string value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_timeStamps
    {
        public string value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_serviceMode
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_operationStatus
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_operationDirection
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_GZ_BJ
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_FaultCode
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_AlarmState
    {
        public bool value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_AlarmCode
    {
        public int value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_TotalRunningTime
    {
        public float value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_TotalRunningCounts
    {
        public long value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_MotorVibrationSpeed
    {
        public float value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_GearboxVibrationSpeed
    {
        public float value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_BaseVibrationSpeed
    {
        public float value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_MainVibrationSpeed
    {
        public float value { get; set; }
        public long ts { get; set; }
    }
    public class Line18ZDFT_StepVibrationSpeed
    {
        public float value { get; set; }
        public long ts { get; set; }
    }

    public class Line18State
    {
        public int fx { get; set; } //方向0=上行；1=下行;2=停止
        public bool yx { get; set; }//正常运行
        public bool jx { get; set; }//检修模式
        public bool gz { get; set; }//故障停梯
        public bool jt { get; set; }//急停停梯
        public string gzdm { get; set; }//故障代码
        public bool yms { get; set; }//Y-🔺运行
        public bool jnyx { get; set; }//节能运行
        public bool dsyx { get; set; }//低速运行
        public bool gsyx { get; set; }//高速运行
        public bool qsyx { get; set; }//全速运行
        public bool bp { get; set; }//变频模式
        public bool zdyx { get; set; }//自动运行
        public bool sxyx { get; set; }//双向运行
        public bool lxyx { get; set; }//连续运行
        public bool xt { get; set; }//通讯
        public double bzbzdq_wd_left1 { get; set; }//抱闸臂制动器温度（左1）
        public double bzbzdq_wd_left2 { get; set; }//抱闸臂制动器温度（左2）
        public double bzbzdq_wd_right1 { get; set; }//抱闸臂制动器温度（右1）
        public double bzbzdq_wd_right2 { get; set; }//抱闸臂制动器温度（右2）
        public double hj_wd { get; set; }//桁架温度
        public double kzg_wd { get; set; }//控制柜温度
        public double bpq_wd { get; set; }//变频器温度
        public double sbfzl { get; set; }//设备负载率
        public double ztjl { get; set; }//制停距离
        public double fsdsdpcl { get; set; }//扶手带速度偏差率
        public int jsdcgq1_qx_rms { get; set; }//加速度传感器1前向RMS
        public int jsdcgq1_hx_rms { get; set; }//加速度传感器1横向RMS
        public int jsdcgq1_cz_rms { get; set; }//加速度传感器1垂直RMS
        public int jsdcgq1_qx_peak { get; set; }//加速度传感器1前向peak
        public int jsdcgq1_hx_peak { get; set; }//加速度传感器1横向peak
        public int jsdcgq1_cz_peak { get; set; }//加速度传感器1垂直peak
        public int jsdcgq2_qx_rms { get; set; }//加速度传感器2前向RMS
        public int jsdcgq2_hx_rms { get; set; }//加速度传感器2横向RMS
        public int jsdcgq2_cz_rms { get; set; }//加速度传感器2垂直RMS
        public int jsdcgq2_qx_peak { get; set; }//加速度传感器2前向peak
        public int jsdcgq2_hx_peak { get; set; }//加速度传感器2横向peak
        public int jsdcgq2_cz_peak { get; set; }//加速度传感器2垂直peak
        public int jsdcgq3_qx_rms { get; set; }//加速度传感器3前向RMS
        public int jsdcgq3_hx_rms { get; set; }//加速度传感器3横向RMS
        public int jsdcgq3_cz_rms { get; set; }//加速度传感器3垂直RMS
        public int jsdcgq3_qx_peak { get; set; }//加速度传感器3前向peak
        public int jsdcgq3_hx_peak { get; set; }//加速度传感器3横向peak
        public int jsdcgq3_cz_peak { get; set; }//加速度传感器3垂直peak
        public int jsdcgq4_qx_rms { get; set; }//加速度传感器4前向RMS
        public int jsdcgq4_hx_rms { get; set; }//加速度传感器4横向RMS
        public int jsdcgq4_cz_rms { get; set; }//加速度传感器4垂直RMS
        public int jsdcgq4_qx_peak { get; set; }//加速度传感器4前向peak
        public int jsdcgq4_hx_peak { get; set; }//加速度传感器4横向peak
        public int jsdcgq4_cz_peak { get; set; }//加速度传感器4垂直peak
        public bool faultState { get; set; }//故障信号
        public int faultCode { get; set; }//故障代码
        public bool alarmState { get; set; }//预警信号
        public int alarmCode { get; set; }//预警代码
        public float totalRunningTime { get; set; }//累计运行时间
        public long totalRunningCounts { get; set; }//累计运行次数
        public float motorVibrationSpeed { get; set; }//电机振动速度
        public float gearboxVibrationSpeed { get; set; }//减速机震动速度
        public float baseVibrationSpeed { get; set; }//底座震动速度
        public float mainVibrationSpeed { get; set; }//主驱动轮震动速度
        public float stepVibrationSpeed { get; set; }//梯级链涨紧轮震动速度

    }

    public class SimulationInfo
    {
        public int Mode { get; set; }//模拟数据;0=否1=是
        public int VirtualInterval { get; set; }//模拟数据发送间隔
    }
}
